package com.example.searchservice.service;


import com.example.bean.Orders;
import com.example.searchservice.mapper.OrderDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderService {

    @Autowired(required=false)
    private OrderDao orderDao;

    public List<Orders> getOrderAmount(Integer id){
        return orderDao.findAmountById(id);
    };
    public List<Orders> getOrderState(Integer id){
        return orderDao.findStateById(id);
    };
}

